package com.mobi.cacti.ns.view.tab;

import com.mobi.cacti.R;
import com.mobi.cacti.ns.view.CustInfoActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;

public class CustInfoTabContainerFragment extends BaseContainerFragment {
	
	private boolean isInitView;
	
	@Override
	public View onCreateView(org.holoeverywhere.LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		return inflater.inflate(R.layout.container_framelayout, null);
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		if (savedInstanceState == null && !isInitView) {
			isInitView = true;
			Log.e("test", "cust info tab container on activity created");
			initView();
		}
	}
	
	private void initView() {
		Log.e("test", "cust info tab init view");
		replaceFragment(new CustInfoActivity(), false);
	}
}
